package com.lifeng.config;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.PropertySource;

/**
 * Created by lifeng on 2018/5/21.
 * encoding = "UTF-8" 不加这个可能中文乱码
 */
@Configuration
@PropertySource(value = "classpath:mytest.properties",encoding = "UTF-8")
public class MyTestConfig {
    @Value("${myuser.name}")
    public String userName;
    @Value("${myuser.password}")
    private String password;
}
